#define _CRT_SECURE_NO_WARNINGS 1
#include"SeqList.h"
void SeqlistPrint(SL s1)
{
	for (int i = 0; i < s1.size; i++)
	{
		printf("%d ", s1.arr[i]);
	}
	printf("\n");
}
void test01()
{
	SL s1;
	SeqListint(&s1);
	
	SeqlistPuchBack(&s1, 1);
	SeqlistPrint(s1);
	SeqlistPuchBack(&s1, 1);
	SeqlistPrint(s1);
	SeqlistPuchBack(&s1, 2);
	SeqlistPrint(s1);
	SeqlistPushFront(&s1, 3);
	SeqlistPrint(s1);
	SeqlistPushFront(&s1, 3);
	SeqlistPrint(s1);
	SeqlistPopBack(&s1);
	SeqlistPrint(s1);
	SeqlistPopFront(&s1);
	SeqlistPrint(s1);
	SeqlistInsert(&s1, 0, 99);
	SeqlistPrint(s1);
	SeqlistInsert(&s1, 2, 99);
	SeqlistPrint(s1);
	SeqlistInsert(&s1, s1.size, 99);
	SeqlistPrint(s1);
	SeqlistErase(&s1, 0);
	SeqlistPrint(s1);
	SeqlistErase(&s1, s1.size);
	SeqlistPrint(s1);
	SeqlistErase(&s1, 1);
	SeqlistPrint(s1);
	printf("%d",SeqlistFind(&s1, 1));
	SeqListDestory(&s1);
	
}
int main()
{
	test01();
	return 0;
}